package com.wenjie.original.entity.vo.SysDbField;

import com.mybatisflex.annotation.RelationOneToMany;
import com.wenjie.original.entity.SysDbEnum;
import com.wenjie.original.entity.SysDbField;
import com.wenjie.original.entity.common.vo.IResVo;
import com.wenjie.original.entity.common.vo.ISelVo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

public class SysDbFieldVo {

    @Data
    public static class SelVo extends SysDbField implements ISelVo<SysDbField> {

        @ApiModelProperty("当前页")
        private Integer pn = 1;

        @ApiModelProperty("页数")
        private Integer ps = 10;
    }

    @Data
    public static class ResVo extends SysDbField implements IResVo<SysDbField> {
        @ApiModelProperty("是否和真实的字段匹配")
        private Boolean isMatch;

        @ApiModelProperty("真实的字段备注")
        private String dbComment;

        @ApiModelProperty("是否是真实字段")
        private String type;

        @ApiModelProperty("字段的全部")
        @RelationOneToMany(selfField = "sysDbFieldId", targetField = "systemDbFieldId")
        private List<SysDbEnum> sysDbEnums;


    }


}

